package com.yj.springbootevent.event;

import com.yj.springbootevent.dto.UserDto;
import lombok.Data;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;


/**
 * 事件
 */
@Getter
//@Component
public class MyApplicationEvent extends ApplicationEvent {

    private UserDto userDto;



    public MyApplicationEvent(Object source) {
        super(source);
    }

    public MyApplicationEvent(Object o,UserDto userDto){
        super(o);
        this.userDto = userDto;
    }





}
